/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mobiubiq.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 *
 * @author Marnix Renne
 */
public final class IOUtils {
    public static void copy(InputStream source, OutputStream dest) throws IOException {
        byte[] buf = new byte[256];
        int read = -1;
        while((read = source.read(buf)) > -1) {
            dest.write(buf, 0, read);
        }
    }
}
